package sk.atletis.atletika;

import android.net.Uri;

public class ArticlesContract 
{
	public static final String _ID = "_id";
	public static final String CATEGORYID = "CategoryId";
	public static final String TITLE = "Title";
	public static final String CITY = "City";
	public static final String DATE = "PublishDate";
	public static final String EDITOR = "Editor";
	public static final String PEREX = "Perex";
	public static final String ARTICLETEXT = "ArticleText";
	public static final String IMAGEPATH = "ImagePath";
	public static final String IMAGETEXT = "ImageText";
	public static final String IMAGEFILE = "ImageFile";
	
	public static final String VIEWED = "Viewed";
	public static final String ADDED = "Added";
	
	public static final String ARTICLES = "articles";
	public static final String ARTICLE_ID = "articleId";

	public static final Uri CONTENT_URI_ARTICLES = Uri.withAppendedPath(AtletikaProvider.CONTENT_URI, ARTICLES);
	
	// Selected columns
	public static final String[] PROJECTION = { _ID, CATEGORYID, TITLE, DATE, PEREX };
	public static final String[] PROJECTION_COMPLETE = { _ID, CATEGORYID, TITLE, CITY, DATE, EDITOR, PEREX, ARTICLETEXT, IMAGEPATH, IMAGETEXT, IMAGEFILE, VIEWED, ADDED };
	public static final String[] PROJECTION_IMAGE = { _ID, IMAGEPATH, IMAGEFILE };
	
	// Sort
	public static final String SORT_DEFAULT = _ID + " DESC";
	public static final String SORT_DATE_DESC = DATE + " DESC";
	
	// MIME type
	public static final String MIME_TYPE_ITEM = "vnd.android.cursor.item/vnd.sk.atletis.atletika.article";
	public static final String MIME_TYPE_DIR = "vnd.android.cursor.dir/vnd.sk.atletis.atletika.article";
	
	// Broadcast action
	public static final String NEW_ARTICLES = "newArticles";
	public static final String ACTION_ARTICLES_UPDATED = "sk.atletis.atletika.action.ARTICLES_UPDATED";
	public static final String ACTION_LASTVIEW_CHANGED = "sk.atletis.atletika.action.LASTVIEW_CHANGED";
}
